package com.king.security.ctrl;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author KING
 * @date 2018/8/30 17:52
 */
@Controller
@RequestMapping("/")
public class IndexController {

    @GetMapping
    public String index() {
        return "redirect:/index";
    }

    @GetMapping("/index")
    public String index2() {
        return "index";
    }
}
